All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.util.IntEncodedImage
java.lang.Object
|
+----quicktime.util.IntEncodedImage
- public class IntEncodedImage
- extends Object
- implements PrimitivesLib, EncodedImage, Cloneable
IntEncodedImage keep the encoded image data as an array of ints.
-
IntEncodedImage(int)
- Creates a new IntEncodedImage of specified number of ints.
-
IntEncodedImage(int, int)
- Creates a new IntEncodedImage of specified number of ints.
-
IntEncodedImage(RawEncodedImage)
- Creates a IntEncodedImage from raw data.
-
clone()
- Returns a copy of the current object
-
equals(Object)
- Returns true if the two objects have the same value.
-
fromIntArray(int[])
- This will make a ByteEncodedImage from an array of ints.
-
fromIntArray(int[], int)
- This will make a ByteEncodedImage from an array of ints.
-
getByte(int)
- Returns the byte at the specified offset.
-
getInt(int)
- Returns the int at the specified offset.
-
getInts()
- Returns the internal int array.
-
getRowBytes()
- Returns either kRowBytesUnknown or the number of bytes per row
that the encoded image data is comprised of.
-
getShort(int)
- Returns the short at the specified offset.
-
getSize()
- Returns the size in bytes of the EncodedImage data
-
toString()
- Returns a string representation of this object
IntEncodedImage
public IntEncodedImage(RawEncodedImage ptr)
- Creates a IntEncodedImage from raw data. It will copy the data
IntEncodedImage
public IntEncodedImage(int numOfInts)
- Creates a new IntEncodedImage of specified number of ints.
IntEncodedImage
public IntEncodedImage(int numOfInts,
int rowBytes)
- Creates a new IntEncodedImage of specified number of ints.
fromIntArray
public static IntEncodedImage fromIntArray(int ar[])
- This will make a ByteEncodedImage from an array of ints. It will not copy
the int array but creates a proxy for the same ints.
fromIntArray
public static IntEncodedImage fromIntArray(int ar[],
int rowBytes)
- This will make a ByteEncodedImage from an array of ints. It will not copy
the int array but creates a proxy for the same ints. It will set the
row bytes as specified.
getInts
public int[] getInts()
- Returns the internal int array. This is NOT a copy so any alteration
of the int values will effect any usage of this object.
getSize
public int getSize()
- Returns the size in bytes of the EncodedImage data
getByte
public byte getByte(int offset)
- Returns the byte at the specified offset.
The offset is specified in bytes into the encoded image object.
getShort
public short getShort(int offset)
- Returns the short at the specified offset.
The offset is specified in bytes into the encoded image object.
getInt
public int getInt(int offset)
- Returns the int at the specified offset.
The offset is specified in bytes into the encoded image object.
getRowBytes
public int getRowBytes()
- Returns either kRowBytesUnknown or the number of bytes per row
that the encoded image data is comprised of. This number will
at least be as big as width*pixelSize, and maybe larger.
equals
public boolean equals(Object obj)
- Returns true if the two objects have the same value.
- Overrides:
- equals in class Object
clone
public Object clone()
- Returns a copy of the current object
- Overrides:
- clone in class Object
toString
public String toString()
- Returns a string representation of this object
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index